package org.fing.edu.uy.esbadp.core.entity;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;

import org.fing.edu.uy.esbadp.core.constants.EsbAdpPropertyConstants;



@XmlRootElement(name = EsbAdpPropertyConstants.MONITOR_MECHANISM_ROOT_ELEMENT)
@XmlSeeAlso({DMAdpMonitorMechanism.class})
public class DMAdpMonitorMechanisms implements Serializable{
	
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 716820365094052307L;
	List<DMAdpMonitorMechanism> mechanisms;
	
	
	public DMAdpMonitorMechanisms(){
		
	}
	
	@XmlElementRef
	public List<DMAdpMonitorMechanism> getMechanisms() {
		return mechanisms;
	}
	public void setMechanisms(List<DMAdpMonitorMechanism> mechanisms) {
		this.mechanisms = mechanisms;
	}
	
	
	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("Monitor Mechanism registered ->\n");
		for(DMAdpMonitorMechanism aux : mechanisms){
			sb.append(aux.toString());
			sb.append("\n");
		}
		return sb.toString();
	}

}
